package pers.vic.basics.jdk.spi;

import java.util.ServiceLoader;

/**
 * 描述:
 * @author Vic.xu
 * @date 2022-01-18 17:05
 */
public class Main {
    public static void main(String[] args) {
        ServiceLoader<Command> serviceloader = ServiceLoader.load(Command.class);
        for (Command command : serviceloader) {
            command.execute();
        }
    }
}
